package com.weiqiao.api.domain.vo;


import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;

/**
 * @author ChenYF
 * @Description
 * @Date 2020/7/28 14:58
 */
@Data
public class OrderApiVO {
    @ApiModelProperty("公司id")
    @Min(value = 1, message = "公司id不能为空")
    private int company_id;

    @ApiModelProperty("用户id == 会员id")
    @Min(value = 1, message = "用户id不能为空")
    private int user_id;

    @ApiModelProperty("用户token")
    @NotBlank(message = "用户token不能为空")
    private String token;

    @ApiModelProperty("用户昵称")
    @NotBlank(message = "用户昵称不能为空")
    private String nickname;

    @ApiModelProperty("用户名称")
    private String user_name;

    @ApiModelProperty("联系电话")
    @NotBlank(message = "联系电话不能为空")
    private String phone;

    @ApiModelProperty("身份证号码")
    private String id_code;

    @ApiModelProperty("订单类型：0：信用卡订单 1：积分兑换订单")
    @NotBlank(message = "订单类型不能为空")
    private String order_type;

    @ApiModelProperty("商品id")
    @NotBlank(message = "商品id不能为空")
    private String commodity_id;

    @ApiModelProperty("积分商品价格")
    private double commodity_price;

    @ApiModelProperty("虚拟积分商品兑换归属账号")
    private String account_number;
}